package com.repair.service.Operator;

import java.util.List;

import com.repair.dao.Operator.IOperatorDao;
import com.repair.domain.Operator;
import com.repair.factory.DaoFactory;

public class OperatorService {
	private IOperatorDao dao = (IOperatorDao) DaoFactory.getInstance().getDao(
			"OperatorDao");

	public void save(Operator obj) {
		this.dao.saveOperator(obj);
	}

	public List<Operator> list() {
		return this.dao.getAllOperator();
	}

	public void delete(String id) {
		this.dao.deleteOperator(id);
	}

	public Operator isorno(String username, String password) {
		return this.dao.isOperator(username, password);
	}

	public List<Operator> serchoperator(String key) {
		return this.dao.serchoperator(key);
	}
}
